<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			
			window.onerror=function(a,b,c)
			{
				console.log("出错信息："+a)
				console.log("出错页面："+b)
				console.log("出错行："+c)
			}
			
			var arr1=[]
			console.log(arr1.length)
			
			foo()
			console.log("正常运行结束")
			
			function foo1()
			{
				console.log("foo()被执行了")
			}
			
		</script>
	</body>
</html>
